<ul class="nav side-menu">
    <#if (menus?size > 0)>
		<#list menus as item>
			<li class="nv">
		    	<a><i class="${item.icon}"></i>${item.name}
		    		<span class="fa fa-chevron-down"></span>
		    	</a>
		        <ul class="nav child_menu">
				    <#if (item.children?size > 0)>
						<#list item.children as child>
				            <li>
				            	<a href="${child.url}" target="p2p_frame">${child.name}</a>
				            </li>						
						</#list>
					</#if>
		        </ul>
		    </li>
		</#list>
	</#if>
</ul>


<script>
	$(".side-menu .child_menu li").click(function(){
		$(".current-page").removeClass("current-page");
		$(".current-page").parent().removeClass("active");
		$(this).addClass("current-page");
		$(this).parent().addClass("active");	
	})

</script>